home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMXULPopupElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  148 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMXULPopupElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMXULPopupElement_h__
  6. #define __gen_nsIDOMXULPopupElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMElement_h__
  10. #include "nsIDOMElement.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIDOMXULElement_h__
  14. #include "nsIDOMXULElement.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDOMXULPopupElement */
  23. #define NS_IDOMXULPOPUPELEMENT_IID_STR "c32390a8-2bd8-4d1b-bf9f-1b1d0a944d19"
  24.  
  25. #define NS_IDOMXULPOPUPELEMENT_IID \
  26.   {0xc32390a8, 0x2bd8, 0x4d1b, \
  27.     { 0xbf, 0x9f, 0x1b, 0x1d, 0x0a, 0x94, 0x4d, 0x19 }}
  28.  
  29. class NS_NO_VTABLE nsIDOMXULPopupElement : public nsIDOMXULElement {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULPOPUPELEMENT_IID)
  33.  
  34.   enum { BEFORE_START = 1U };
  35.  
  36.   enum { BEFORE_END = 2U };
  37.  
  38.   enum { AFTER_START = 3U };
  39.  
  40.   enum { AFTER_END = 4U };
  41.  
  42.   enum { START_BEFORE = 5U };
  43.  
  44.   enum { START_AFTER = 6U };
  45.  
  46.   enum { END_BEFORE = 7U };
  47.  
  48.   enum { END_AFTER = 8U };
  49.  
  50.   enum { OVERLAP = 9U };
  51.  
  52.   enum { AT_POINTER = 10U };
  53.  
  54.   enum { AFTER_POINTER = 11U };
  55.  
  56.   /* attribute DOMString position; */
  57.   NS_IMETHOD GetPosition(nsAString & aPosition) = 0;
  58.   NS_IMETHOD SetPosition(const nsAString & aPosition) = 0;
  59.  
  60.   /* void showPopup (in unsigned short alignment, in nsIDOMElement target, in nsIDOMElement anchor); */
  61.   NS_IMETHOD ShowPopup(PRUint16 alignment, nsIDOMElement *target, nsIDOMElement *anchor) = 0;
  62.  
  63.   /* void hidePopup (); */
  64.   NS_IMETHOD HidePopup(void) = 0;
  65.  
  66. };
  67.  
  68. /* Use this macro when declaring classes that implement this interface. */
  69. #define NS_DECL_NSIDOMXULPOPUPELEMENT \
  70.   NS_IMETHOD GetPosition(nsAString & aPosition); \
  71.   NS_IMETHOD SetPosition(const nsAString & aPosition); \
  72.   NS_IMETHOD ShowPopup(PRUint16 alignment, nsIDOMElement *target, nsIDOMElement *anchor); \
  73.   NS_IMETHOD HidePopup(void); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIDOMXULPOPUPELEMENT(_to) \
  77.   NS_IMETHOD GetPosition(nsAString & aPosition) { return _to GetPosition(aPosition); } \
  78.   NS_IMETHOD SetPosition(const nsAString & aPosition) { return _to SetPosition(aPosition); } \
  79.   NS_IMETHOD ShowPopup(PRUint16 alignment, nsIDOMElement *target, nsIDOMElement *anchor) { return _to ShowPopup(alignment, target, anchor); } \
  80.   NS_IMETHOD HidePopup(void) { return _to HidePopup(); } 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  83. #define NS_FORWARD_SAFE_NSIDOMXULPOPUPELEMENT(_to) \
  84.   NS_IMETHOD GetPosition(nsAString & aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(aPosition); } \
  85.   NS_IMETHOD SetPosition(const nsAString & aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPosition(aPosition); } \
  86.   NS_IMETHOD ShowPopup(PRUint16 alignment, nsIDOMElement *target, nsIDOMElement *anchor) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopup(alignment, target, anchor); } \
  87.   NS_IMETHOD HidePopup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HidePopup(); } 
  88.  
  89. #if 0
  90. /* Use the code below as a template for the implementation class for this interface. */
  91.  
  92. /* Header file */
  93. class nsDOMXULPopupElement : public nsIDOMXULPopupElement
  94. {
  95. public:
  96.   NS_DECL_ISUPPORTS
  97.   NS_DECL_NSIDOMXULPOPUPELEMENT
  98.  
  99.   nsDOMXULPopupElement();
  100.  
  101. private:
  102.   ~nsDOMXULPopupElement();
  103.  
  104. protected:
  105.   /* additional members */
  106. };
  107.  
  108. /* Implementation file */
  109. NS_IMPL_ISUPPORTS1(nsDOMXULPopupElement, nsIDOMXULPopupElement)
  110.  
  111. nsDOMXULPopupElement::nsDOMXULPopupElement()
  112. {
  113.   /* member initializers and constructor code */
  114. }
  115.  
  116. nsDOMXULPopupElement::~nsDOMXULPopupElement()
  117. {
  118.   /* destructor code */
  119. }
  120.  
  121. /* attribute DOMString position; */
  122. NS_IMETHODIMP nsDOMXULPopupElement::GetPosition(nsAString & aPosition)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. NS_IMETHODIMP nsDOMXULPopupElement::SetPosition(const nsAString & aPosition)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* void showPopup (in unsigned short alignment, in nsIDOMElement target, in nsIDOMElement anchor); */
  132. NS_IMETHODIMP nsDOMXULPopupElement::ShowPopup(PRUint16 alignment, nsIDOMElement *target, nsIDOMElement *anchor)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* void hidePopup (); */
  138. NS_IMETHODIMP nsDOMXULPopupElement::HidePopup()
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* End of implementation class template. */
  144. #endif
  145.  
  146.  
  147. #endif /* __gen_nsIDOMXULPopupElement_h__ */
  148.